package com.ruoyi.bussiness.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 违章对象 mgt_violation
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
public class MgtViolation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 违章人员ID */
    @Excel(name = "违章人员ID")
    private String employeeId;

    /** 违章时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "违章时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date violationTime;

    /** 违章处理状态 */
    @Excel(name = "违章处理状态")
    private Long state;

    /** 处理结果 */
    @Excel(name = "处理结果")
    private String result;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEmployeeId(String employeeId) 
    {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() 
    {
        return employeeId;
    }
    public void setViolationTime(Date violationTime) 
    {
        this.violationTime = violationTime;
    }

    public Date getViolationTime() 
    {
        return violationTime;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("violationTime", getViolationTime())
            .append("state", getState())
            .append("result", getResult())
            .toString();
    }
}
